<?php

require_once dirname(__FILE__) . '/lib/database.php';
require_once dirname(__FILE__) . '/lib/relations.php';
require_once dirname(__FILE__) . '/lib/sites.php';
require_once dirname(__FILE__) . '/lib/operators.php';
require_once dirname(__FILE__) . '/lib/visitors.php';
require_once dirname(__FILE__) . '/lib/messages.php';
require_once dirname(__FILE__) . '/lib/lang.php';
require_once dirname(__FILE__) . '/lib/provocations.php';

session_start();

if (!empty($_GET['sessionId'])) {
  session_id($_GET['sessionId']);
}

header('P3P: CP="CAO PSA OUR"');
header('Content-type: text/html; charset=utf-8');

define('CFG_PING_INTERVAL', 3);
$errors = array();

$result = mysql_connect('localhost', 'root', '');
$result = mysql_select_db('lowcost');

if (!$result) {
  throw new Exception(mysql_error());
}
